Creates a new texture object representing the GdkPixbuf.
This function is threadsafe, so that you can e.g. use GTask and [method@Gio.Task.run_in_thread] to avoid blocking the main thread while loading a big image.
a GdkPixbuf
a new GdkTexture
ConstructionException GTK+ fails to create the object.
See Implementation
Creates a new texture object representing the GdkPixbuf.
This function is threadsafe, so that you can e.g. use GTask and [method@Gio.Task.run_in_thread] to avoid blocking the main thread while loading a big image.